import Vue from 'vue'
import Vuex from 'vuex'
import http from '../common/http.js'


Vue.use(Vuex)

const store = new Vuex.Store({
	state:{
		jb:'',//货币名称
		bs:'',//宝石名称
	},
	getters:{},
	mutations:{
		getinfo(state,data){
			http.asyncSendrequest({
				url:'/common/baseConfig',
				success:res=>{
					state.bs = res.data.gemstone_name
					state.jb = res.data.medal_name
				}
			})
		},
	},
	// 异步修改
	actions:{}
})

export default store;